<template>
  <van-grid :column-num="5">
    <van-grid-item
      v-for="(item,index) in navs"
      :key="index"
      :icon="item.icon"
      :text="item.text"
    />
  </van-grid>
</template>

<script>
export default {
  data() {
    return {
      navs: [
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/125678/35/5947/4868/5efbf28cEbf04a25a/e2bcc411170524f0.png",
          text: "嗨购超市",
          url: "https://www.baidu.com",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/178015/31/13828/6862/60ec0c04Ee2fd63ac/ccf74d805a059a44.png",
          text: "数码电器",
          to: "/My",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/125678/35/5947/4868/5efbf28cEbf04a25a/e2bcc411170524f0.png",
          text: "嗨购超市",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/178015/31/13828/6862/60ec0c04Ee2fd63ac/ccf74d805a059a44.png",
          text: "数码电器",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/125678/35/5947/4868/5efbf28cEbf04a25a/e2bcc411170524f0.png",
          text: "嗨购超市",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/178015/31/13828/6862/60ec0c04Ee2fd63ac/ccf74d805a059a44.png",
          text: "数码电器",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/125678/35/5947/4868/5efbf28cEbf04a25a/e2bcc411170524f0.png",
          text: "嗨购超市",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/178015/31/13828/6862/60ec0c04Ee2fd63ac/ccf74d805a059a44.png",
          text: "数码电器",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/125678/35/5947/4868/5efbf28cEbf04a25a/e2bcc411170524f0.png",
          text: "嗨购超市",
        },
        {
          icon: "https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/178015/31/13828/6862/60ec0c04Ee2fd63ac/ccf74d805a059a44.png",
          text: "数码电器",
        },
      ],
    };
  },
};
</script>

<style>
</style>